Skip to main content

Token Metadata by Id

Queries token metadata information for the specified token Id.

query Token($tokenId: String!) {
token {
token_metadata_by_id(token_id: $tokenId) {
coinDecimal
displayName
tokenId
description
image
price
price_change_24h
price_change_7d
dex
chain_uids
total_volume
total_volume_24h
tags
min_swap_value
social
is_verified
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token($tokenId: String!, $verified: Boolean) {\n token {\n token_metadata_by_id(token_id: $tokenId, verified: $verified) {\n coinDecimal\n displayName\n tokenId\n description\n image\n price\n price_change_24h\n price_change_7d\n dex\n chain_uids\n total_volume\n total_volume_24h\n tags\n min_swap_value\n social\n is_verified\n }\n }\n}","variables":{"tokenId":"euclid","verified":null}}'

Open in Playground

Arguments

ArgumentTypeDescription
tokenIdString!The unique ID of the token.
verifiedBooleanWhether to query verified token metadata only.

Return Fields

FieldTypeDescription
coinDecimalIntThe number of decimals for the token.
displayNameStringHuman-readable name of the token.
tokenIdStringInternal identifier of the token.
descriptionStringDescription of the token.
imageStringURL to the token's image.
priceStringCurrent price of the token.
price_change_24hFloatPrice change percentage in the last 24 hours.
price_change_7dFloatPrice change percentage in the last 7 days.
dex[String]List of DEXs where this token is available.
chain_uids[String]Chains on which the token exists.
total_volumeFloatLifetime trade volume of the token.
total_volume_24hFloatTrade volume in the last 24 hours.
tags[String]Associated tags for the token.
min_swap_valueFloatMinimum value required for a swap.
socialJSON/ObjectSocial links or metadata (structure may vary).
is_verifiedBooleanWhether the token is verified by the protocol.